home *** CD-ROM | disk | FTP | other *** search
-
-
- NAME
- setdtr -- set state of data terminal ready flag
- setrts -- set state of ready to send flag
-
- SYNOPSIS
- void setdtr(port, mode);
- void setrts(port, mode);
- int port; 0, 1, 2, or 3 (for COM1-COM4)
- int mode; TRUE to set flag, FALSE to clear flag
-
-
- DESCRIPTION
- These are assembly language functions which provide direct
- access to the serial communications chips for the fastest
- access possible. Each function sets a particular
- communications output bit to the condition stated by "mode".
- The port parameter may be specified as integers 0-3, or
- SER1 to SER4 as defined in <smdefs.h>.
-
-
-
- EXAMPLE
-
- int sport; /* serial port */
-
- sport = SER2; /* let it point to COM2 */
- setdtr(sport, YES); /* take the modem offhook */
-
-
-
-
-
-
-
-
-
-
- This function is found in SMDLx.LIB for the Datalight Compiler